import request from '@/utils/request'

// 查询优惠券前台领取列表
export function listCouponIssue(query) {
  return request({
    url: '/business/couponIssue/list',
    method: 'get',
    params: query
  })
}

// 查询优惠券前台领取所有列表
export function listAllCouponIssue(query) {
  return request({
    url: '/business/couponIssue/listAll',
    method: 'get',
    params: query
  })
}

// 查询优惠券前台领取详细
export function getCouponIssue(id) {
  return request({
    url: '/business/couponIssue/getInfo/' + id,
    method: 'get'
  })
}

// 新增优惠券前台领取
export function addCouponIssue(data) {
  return request({
    url: '/business/couponIssue/add',
    method: 'post',
    data: data
  })
}

// 修改优惠券前台领取
export function updateCouponIssue(data) {
  return request({
    url: '/business/couponIssue/edit',
    method: 'post',
    data: data
  })
}

// 删除优惠券前台领取
export function delCouponIssue(id) {
  return request({
    url: '/business/couponIssue/remove/' + id,
    method: 'get'
  })
}
